package com.example.model;

import java.math.BigDecimal;
import java.time.LocalDateTime;

public class TradeInfo {
    private String tradeId;
    private LocalDateTime tradeDate = LocalDateTime.now(); // 默认当前时间
    private String tradeType; // 存款/取款/转账
    private String cardId; // 外键
    private BigDecimal tradeMoney;
    private String remark;

    // Getters and Setters
    public String getTradeId() { return tradeId; }
    public void setTradeId(String tradeId) { this.tradeId = tradeId; }

    public LocalDateTime getTradeDate() { return tradeDate; }
    public void setTradeDate(LocalDateTime tradeDate) { this.tradeDate = tradeDate; }

    public String getTradeType() { return tradeType; }
    public void setTradeType(String tradeType) { this.tradeType = tradeType; }

    public String getCardId() { return cardId; }
    public void setCardId(String cardId) { this.cardId = cardId; }

    public BigDecimal getTradeMoney() { return tradeMoney; }
    public void setTradeMoney(BigDecimal tradeMoney) { this.tradeMoney = tradeMoney; }

    public String getRemark() { return remark; }
    public void setRemark(String remark) { this.remark = remark; }
}
